/*
 * terminalHandler.h
 */
#ifndef TERMINALHANDLER_H
#define TERMINALHANDLER_H

#include <string>
#include <iostream>
#include <vector>
#include <algorithm>
#include <tuple>
#include <sstream>
using namespace std;

namespace terminal {
	typedef tuple<string,int,int,string,string,string,int> container;
	class terminalHandler {
		public:
		terminalHandler();
		~terminalHandler();
		container read();
		void write(int, stringstream& os);
		void write(string);
		void add(int);
		
		private:
		void prefix();
		container level0();
		container level1();
		container level2();
		container level3();
		
		int level;
		bool pre;


		string message;
		int newsGroupId;
		int articleId;
		string author;
		string name;
		string text;

		string NothingToBeDone;
		string readArticle;
		string WriteNewsgroups;
		string WriteArticles;
		string deleteNewsgroup;
		string deleteArticle;
		string createNewsgroup;
		string createArticle;	
		
		string manual;

	};

}
#endif
